<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Photo Approval </a>
        </h2>
        <caption>&nbsp;</caption> 
        <fieldset>

            <?php foreach ($photos as $photos): ?>
                <?php
                $listing = $this->listing_model->get_listing($photos->listing_id);
                if ($listing) {
                    ?>
                    <div style="float:left">
                        <div class="photo">
                            <img id="img" src="<?= base_url() ?>./assets/images/data/photo/<?= $photos->description; ?>" height="125" width="180" alt="<?= $photos->description; ?>"/>
                            <div style="text-align: center;margin-top:2px; margin-bottom:1px"><?= $this->management_model->get_version('CAR', $listing->version)->version; ?></div>
                            <div class="photobutton"><a href="<?= base_url(); ?>admin/approval/active_photos/<?= $photos->id; ?> " onclick="return confirm('Are you sure you want to Active?')"><span class="link-button">Active </span></a>                                       
                                <a href="<?= base_url(); ?>admin/approval/delete_photo/<?= $photos->id; ?>/<?= $photos->description; ?>" onclick="return confirm('Are you sure you want to delete?')"><span class="link-button">Delete </span></a>                                     

                            </div>
                        </div>
                    </div>
                <?php } ?>

<?php endforeach; ?>
    </div>
</fieldset>
</div>